Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(legacy prefix detection): calculate range end for legacy prefix instead of empty #761

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

Abhinandan-Purkait
Copy link
Member

What is the issue?

For legacy prefix detection we used the paginated call with range end as "", which was incorrect as "" range end fetches all the values, irrespective of the key prefix. Now we calculate the range end with legacy prefix thus we get only the specific KVs.

…nstead of empty

Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
@Abhinandan-Purkait
Copy link
Member Author

bors try

bors-openebs-mayastor bot pushed a commit that referenced this pull request Feb 26, 2024
@bors-openebs-mayastor
Copy link

try

Build succeeded:

@Abhinandan-Purkait
Copy link
Member Author

bors merge

bors-openebs-mayastor bot pushed a commit that referenced this pull request Feb 26, 2024
761: fix(legacy prefix detection): calculate range end for legacy prefix instead of empty r=Abhinandan-Purkait a=Abhinandan-Purkait

#### What is the issue?

For legacy prefix detection we used the paginated call with range end as `""`, which was incorrect as `""` range end fetches all the values, irrespective of the key prefix. Now we calculate the range end with legacy prefix thus we get only the specific KVs.

Co-authored-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
@bors-openebs-mayastor
Copy link

Build failed:

@Abhinandan-Purkait
Copy link
Member Author

bors merge

@bors-openebs-mayastor
Copy link

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit 6041608 into develop Feb 26, 2024
4 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the fix_legacy_prefix branch February 26, 2024 19:15
bors-openebs-mayastor bot pushed a commit that referenced this pull request Feb 27, 2024
762: fix(legacy prefix detection): calculate range end for legacy prefix instead of empty r=Abhinandan-Purkait a=Abhinandan-Purkait

Cherry pick #761 

Co-authored-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants